package mi.payment.settings;

import java.io.Serializable;

import mi.payment.BuildConfig;
import mi.payment.constants.Configs;

/**
 * 交易结算状态配置
 *
 * @author sunmi on 2017/2/15.
 */
public class SettlementTransaction implements Serializable {

    // 删除了两个字段，故无需更新uid值，使用原有的即可
    private static final long serialVersionUID = 7635309937903053201L;

    public static final String SETTLEMENT_TRANSACTION_SETTING_KEY = "SettlementTransaction_SETTING_KEY";

    private boolean isAutomaticSignOut = Configs.getInstance().SETTLEMENT_AUTOMATIC_RETURN();      // 是否自动签退

    public boolean isAutomaticSignOut() {
        return isAutomaticSignOut;
    }

    protected void setAutomaticSignOut(boolean automaticSignOut) {
        isAutomaticSignOut = automaticSignOut;
    }

    @Override
    public String toString() {
        return "SettlementTransaction{" +
                "isAutomaticSignOut=" + isAutomaticSignOut +
                '}';
    }
}
